﻿Imports System.Drawing.Drawing2D
Public Class frmColors

    Private Sub frmColors_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
        frmMain.coItem.Checked = False
    End Sub

    Private Sub frmColors_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.Location = New Point(Screen.PrimaryScreen.WorkingArea.Left - Screen.PrimaryScreen.WorkingArea.Top)
    End Sub

    Private Sub colorsBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles colorsBox.SelectedIndexChanged
        My.Settings.drawingColor = colorsBox.SelectedItem
        My.Settings.Save()
    End Sub

    Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem2.Click
        frmColorSearch.Show()
    End Sub
End Class